package service.impl;

import dao.Impl.ProductImpl;
import dao.ProductDao;
import dto.ProductModelDto;
import dto.ShowDto;
import model.ProductModel;
import service.IProductService;

import java.util.List;

public class ProductServiceImpl implements IProductService {
    @Override
    public List<ProductModel> getNameList() {
        ProductDao dao= new ProductImpl();
        return dao.getNameList();
    }

    @Override
    public List<ShowDto> getShowList() {
        ProductDao dao= new ProductImpl();
        return dao.getShowList();
    }

    @Override
    public ProductModelDto getProductModel() {
        ProductModelDto dto =new ProductModelDto();
        ProductDao dao= new ProductImpl();
        dto.setContent(dao.getContent());
        dto.setNameList(dao.getNameList());
        return dto;
    }
}
